import './App.css';
import "antd/dist/antd.css";
import { Switch, Route } from 'react-router-dom';
import Main from './pages/Main';
import NotFound from './pages/NotFound';
import Profile from './pages/Profile';

function App() {
  return (
    <Switch>
      <Route path="/" exact component={Main} />
      <Route path="/profile/:id" component={Profile} />
      <Route path="/*" component={NotFound} />
    </Switch>
  );
}

export default App;
